#include"Udpserver.hpp"
#include"comm.hpp"
#include<memory>

void Usage(std::string proc)
{
  std::cout<<"Usage: \n\t"<<proc<<"local_prot"<<std::endl;
}

int main(int args,char*argv[])
{
  if(args!=2)
  {
    Usage(argv[0]);
    return Usage_err;
  }

  //std::string ip=argv[1];
  uint16_t port=std::stoi(argv[1]);
  std::unique_ptr<UdpServer> usvr = std::unique_ptr<UdpServer>(new UdpServer(port));
  
  usvr->Init();
  usvr->Start();
  
  return 0;
}


